package org.codeart.broker.example01;

/**
 * 具体同事类
 */
public class ConcreteColleagueB extends Colleague {

    public ConcreteColleagueB(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void exec(String key) {
        System.out.println("在同事 B 中, 通过中介者执行!");
        getMediator().apply(key);
    }
}
